"""
@Time ： 2021/12/7 18:01
@Auth ： ChenZhangKun
"""
import threading
import time

num = 100


def demo1():
    global num
    num += 1
    print(num)


def demo2():
    print(num)


if __name__ == '__main__':
    t1 = threading.Thread(target=demo1)
    t2 = threading.Thread(target=demo2)
    t2.start()
    time.sleep(1)
    t1.start()
